home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 July / macformat52.iso / mac / Shareware Plus / Developers / YAAF v1.0 alpha 1 / (Tools) / CompileVRes / VRes Definitions / YAAP_ctrl.vh < prev   
Encoding:
Text File  |  1997-04-21  |  3.2 KB  |  172 lines

  1. /*    YAAP_ctrl.vh
  2.  *
  3.  *        Standard resource definitions for the standard controls
  4.  *
  5.  *        This defines the following views
  6.  *
  7.  *        'pbtn'                Push button
  8.  *        'rbtn'                Radio button
  9.  *        'cbtn'                Check box
  10.  *        'text'                Static text display box
  11.  *        'edit'                Editable text box
  12.  *        'grou'                Group box
  13.  *        'pict'                Picture display
  14.  *        'icon'                Icon display
  15.  *        'list'                List box
  16.  *        'scrl'                Scroll control
  17.  *        'scrv'                Scroll view
  18.  */
  19.  
  20. read "YAAP_core.vh";
  21.  
  22. /************************************************************************/
  23. /*                                                                        */
  24. /*    YAAP_stdc buttons                                                    */
  25. /*                                                                        */
  26. /************************************************************************/
  27.  
  28. /*    pbtn
  29.  *
  30.  *        Push button
  31.  */
  32.  
  33. define "pbtn" {
  34.     class "view";
  35.     string;                /* Default name in button */
  36. };
  37.  
  38. /*    rbtn
  39.  *
  40.  *        Radio button
  41.  */
  42.  
  43. define "pbtn" {
  44.     class "view";
  45.     string;                /* Default name in button */
  46. };
  47.  
  48. /*    cbtn
  49.  *
  50.  *        Check box
  51.  */
  52.  
  53. define "pbtn" {
  54.     class "view";
  55.     string;                /* Default name in button */
  56. };
  57.  
  58. /************************************************************************/
  59. /*                                                                        */
  60. /*    YAAP_stdc text boxes                                                */
  61. /*                                                                        */
  62. /************************************************************************/
  63.  
  64. /*    text
  65.  *
  66.  *        Text box
  67.  */
  68.  
  69. define "text" {
  70.     class "view";
  71.     string;                /* Text to display */
  72. };
  73.  
  74. /*    edit
  75.  *
  76.  *        Editable text box
  77.  */
  78.  
  79. define "edit" {
  80.     class "view";
  81.     string;                /* Text to display */
  82. };
  83.  
  84. /*    grou
  85.  *
  86.  *        Group box (draws a box around it's contents)
  87.  */
  88.  
  89. define "grou" {
  90.     class "view";
  91.     string;                /* Text to display */
  92. };
  93.  
  94. /************************************************************************/
  95. /*                                                                        */
  96. /*    YAAP_stdc image display                                                */
  97. /*                                                                        */
  98. /************************************************************************/
  99.  
  100. /*    pict
  101.  *
  102.  *        Picture display
  103.  */
  104.  
  105. define "pict" {
  106.     class "view";
  107.     integer;            /* Resource ID of the picture to show */
  108. };
  109.  
  110. /*    icon
  111.  *
  112.  *        icon display
  113.  */
  114.  
  115. define "icon" {
  116.     class "view";
  117.     integer;            /* Resource ID of the icon to show */
  118. };
  119.  
  120. /************************************************************************/
  121. /*                                                                        */
  122. /*    YAAP_stdc list boxes                                                */
  123. /*                                                                        */
  124. /************************************************************************/
  125.  
  126. /*    list
  127.  *
  128.  *        List box display
  129.  */
  130.  
  131. define "list" {
  132.     class "view";
  133.     bool;                /* True if this allows multiple selections */
  134. };
  135.  
  136. /************************************************************************/
  137. /*                                                                        */
  138. /*    YAAP_stdc scrolling stuff                                            */
  139. /*                                                                        */
  140. /************************************************************************/
  141.  
  142. /*    scrl
  143.  *
  144.  *        Scroll bar
  145.  */
  146.  
  147. define "scrl" {
  148.     class "view";
  149.     integer;            // Default page size
  150.     integer;            // min size
  151.     integer;            // max size
  152.     integer;            // initial value
  153. };
  154.  
  155. /*    scrv
  156.  *
  157.  *        Scrolling view.
  158.  *
  159.  *    NOTE: The children's locations are calculated based on the scrolling
  160.  *    content area, and not the full size of this view. That basically means
  161.  *    you don't need to know how big the scrollbars are; things inside of this
  162.  *    view will be automatically moved over.
  163.  */
  164.  
  165. define "scrv" {
  166.     class "view";
  167.     bool;                // horizontal scroll bar?
  168.     bool;                // vertical scroll bar?
  169.     bool;                // corner cutout?
  170.     integer;            // ID of the view to move
  171. };
  172.